
#include <cassert>
#include <cstdlib>

#include <WinDef.h>

#include "Core\Engine.h"

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, int iCmdShow)
{
	BOOL result = FALSE;

	// Initialize and run.
	result = Engine::GetInstance().Initialize();
	assert(result);

	Engine::GetInstance().Run();

	// Terminate engine.
	Engine::GetInstance().Terminate();

	return EXIT_SUCCESS;
}